package com.eric.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName GoodsApplication
 * @Description TODO
 * @Author Eric
 * @Date 2021/12/27 13:45
 * @Version 1.0
 */
@EnableDiscoveryClient
@SpringBootApplication
@RestController
@RefreshScope
public class GoodsApplication {
    @GetMapping("/goods/get")
    public String get(){
       return "goods server get";
    }
    public static void main(String[] args) {
        SpringApplication.run(GoodsApplication.class,args);
    }
}
